import * as dayjs from 'dayjs';
export const isValidDate = (dateString: string) => {
  const formattedDate = dayjs(dateString, 'YYYY-MM-DD').format('YYYY-MM-DD');
  return dateString === formattedDate && dayjs(formattedDate).isValid();
};
